<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <%= javascript_include_tag :defaults %>    
    <%= javascript_include_tag 'curvycorners' %>
    <meta http-equiv="Content-Type" content="text/html;.charset=iso-8859-1" />
    <meta http-equiv="Content-Language" content="en-us" />
    <title><%= I18n.t :tr_title %></title>
    <%= stylesheet_link_tag "style" %>
  </head>
  <body>    
    <div id="main_container">
      <div id="header">
      </div>
      <ul id="nav">
        <%
        if session[:player].nil?
        %>
           <li class="common"><a href="/login"><%= I18n.t :tr_sign_in %></a></li>
        <%
        else
        %>
           <li class="common"><%= I18n.t :tr_greeting %>, <%=  session[:user_id].fullname %></li>
           <li class="common"><a href="/logout"><%= I18n.t :tr_sign_out %></a></li>
        <%
        end
        %>
        <li><a href="http://code.google.com/p/canelada" target="_new"><%= I18n.t :tr_project_site %></a></li>
      </ul>
      <div id="content">
        <% if flash[:error] -%>
         <div id="msg_error"><%= flash[:error] %></div>
        <% end -%>

        <% if flash[:warning] -%>
          <div id="msg_warning"><%= flash[:warning] %></div>
        <% end -%>

        <% if flash[:notice] -%>
          <div id="msg_notice"><%= flash[:notice] %></div>
        <% end -%>

        <%= yield -%>
      </div>
      <div style="height: 25px;"></div>
    </div>
    <div id="footer">
    </div>
  </body>
</html>
